export function getLocation(){
	let location = "";
	uni.getLocation({
		type: 'wgs84',
		geocode:true,
		success: function(res) {
			console.log('当前位置的经度：' + res.longitude);
			console.log('当前位置的纬度：' + res.latitude);
			let province = res.address.province
			let city = res.address.city
			let district = res.address.district
			let street = res.address.street
		
			location = province + '-' + city + '-' + district + '-' + street
			// console.log(location)
		}
	});
	console.log("方法内部位置"+location)
	return location
}